import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_keep_book/app/constant/colors.dart';
import 'package:flutter_keep_book/app/index/item_type/item_type_view_model.dart';
import 'package:flutter_keep_book/app/widgets/title_bar.dart';

import 'item_type_list_view.dart';

class ItemTypeListPage extends StatefulWidget {
  const ItemTypeListPage({super.key});

  @override
  State<ItemTypeListPage> createState() => _ItemTypeListPageState();
}

class _ItemTypeListPageState extends State<ItemTypeListPage> {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      resizeToAvoidBottomInset: false,
      appBar: titleBar(context, title: "科目列表"),
      body: _itemTypeBody(context),
      // body: Container(width: 200,height: 200,color: MagicColors.loginWelcome,),
    );
  }

   Widget _itemTypeBody(BuildContext context) {
     return  Container(child: ItemTypeListView(viewModel: ItemTypeViewModel()));
  }
}
